import { Component} from '@angular/core';

@Component({
  templateUrl: './demo4.component.html',
})
export class Demo4Component {
  activeIndex = 0;
  status = 'process';
  
  click(index) {
    this.activeIndex = index;
    this.status = 'process';
    setTimeout(() => {
      this.status = 'finish';
    }, 1000);
  }
}